//
//  Brandlist.m
//  __PRODUCTNAME__
//
//  Created by QC.L on 16/08/10
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "Brandlist.h"
#import "Brand.h"

@implementation Brandlist

- (void)setValue:(id)value forKey:(NSString *)key {
    if ([key isEqualToString:@"list"]) {
        NSMutableArray <Brand *>*bandArry = [NSMutableArray array];
        for (NSDictionary *dict in value) {
            Brand *brands = [Brand modelWithDic:dict];
            [bandArry addObject:brands];
        }
        _list = bandArry;
    }
}

+ (NSDictionary *)objectClassInArray{
    return @{@"list" : [Brand class]};
}

@end
